	sessionStorage.id = " ";
	sessionStorage.author = " ";
	sessionStorage.main = " ";
	sessionStorage.tag = " ";
	sessionStorage.time = " ";
	sessionStorage.title = " ";
$(document).ready(function(){
	$.get(getUserURL,function(data){
		sessionStorage.userId = data.id;
		sessionStorage.userName = data.userName;
		sessionStorage.userAccount = data.account;
		sessionStorage.userPassword = data.password;
		$("header>span").text(sessionStorage.userName+",欢迎登录本系统！")
	});
	//判断是否登录
	if(window.sessionStorage)
	{ 

		
	}
	$(".editBlog").click(function(event) {
		sessionStorage.id = " ";
		sessionStorage.author = " ";
		sessionStorage.main = " ";
		sessionStorage.tag = " ";
		sessionStorage.time = " ";
		sessionStorage.title = " ";
	});
	
//	window.onbeforeunload=function (){
//		if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){
//		     
//		}
//		else
//		{
//		    sessionStorage.id = "";
//			sessionStorage.title = "";
//			sessionStorage.tag = "";
//			sessionStorage.main = "";
//		}
//	}
});